import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
  //路由初始指向
    path: '/',
    name: 'Index',
    component:()=>import('../index/index.vue')
  },  
  {
  //路由初始指向
    path: '/editor_vditor',
    name: 'editor_vditor',
    component:()=>import('../index/editor_vditor.vue')
  },  
  {
  //路由初始指向
    path: '/editor_monaco',
    name: 'editor_monaco',
    component:()=>import('../index/editor_monaco.vue')
  },  
  {
  //路由初始指向
    path: '/editor',
    name: 'editor',
    component:()=>import('../index/editor.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router